package com.benjaminwan.ocr.screens

import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.navigation.NavHostController

@Composable
fun NavBackIcon(navController: NavHostController) {
    IconButton(
        modifier = Modifier.padding(2.dp),
        onClick = {
            navController.navigateUp()
        },
        enabled = true
    ) {
        Icon(
            Icons.Filled.ArrowBack, contentDescription = null,
            modifier = Modifier
                .size(28.dp),
        )
    }
}